package entity.user;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 优惠券
 * </p>
 *
 * @author ZL
 * @since 2022-11-12
 */
@Getter
@Setter
@TableName("coupon")
public class Coupon implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 优惠券ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 优惠券名称
     */
    @TableField("coupon_name")
    private String couponName;

    /**
     * 优惠券描述
     */
    @TableField("coupon_remark")
    private String couponRemark;

    /**
     * 满xx
     */
    @TableField("fill")
    private Integer fill;

    /**
     * 减xx
     */
    @TableField("subtract")
    private Integer subtract;

    /**
     * 开始时间
     */
    @TableField("start_time")
    private LocalDateTime startTime;

    /**
     * 结束时间
     */
    @TableField("end_time")
    private LocalDateTime endTime;

    /**
     * 删除标识
     */
    @TableField("delete_time")
    private String deleteTime;


}
